<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{:session('cp.cpsysname')}--商户管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <meta name="author" content="runoob">
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrapSwitch.css">
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
    <link rel="stylesheet" href="__STATIC_URL__/static/css/addmchat.css"/>
    <link rel="stylesheet" href="__STATIC_URL__/static/css/creatcard.css"/>
    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js"></script>
    <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/bootstrap-datetimepicker.css"/>
    <script src="__STATIC_URL__/static/js/bootstrap-datetimepicker.js" type="text/javascript" charset="utf-8"></script>
    <script src="__STATIC_URL__/static/js/commen.js" type="text/javascript" charset="utf-8"></script>
    <style>
        .filePicker{
            margin-top: -5px;
            width: 150px;
            height: 44px;
            background: #00A2D4;
            color: #fff;
            text-align: center;
            line-height: 44px;
            border-radius: 4px;
            cursor: pointer;
        }
        .file{
            position: absolute;
            left: 14px;
            top: -5px;
            width: 150px;
            height: 44px;
            line-height: 44px;
            opacity: 0;
            cursor: pointer;
        }
        .img-file{
            width: 100px;
            height: 100px;
            display: block;
            margin-left: 26px;
            margin-top: 10px;
            display: none;
        }
        .form-control{
            width: 50%;
        }
        .has-switch span, .has-switch label{
            height: auto;
        }
        .color-list li.selected {
            border: 2px solid #FF0000;
            margin: 3px;
            padding: 10px;
        }
        .color-list li {
            width: 20px;
            height: 20px;
            float: left;
            margin: 5px;
            cursor: pointer;
            list-style: none;
        }
        .ng-scope input {
            width: 82px;
            height: 34px;
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
            cursor: pointer;
        }

    </style>
</head>
<body>
{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <div class="page-heading mgl15 mgr15">
            <ul class="breadcrumb">
                <li>当前位置是&nbsp;:</li>
                <li>
                    <a href="{:url('cards/cardslist')}">卡券管理</a>
                </li>
                <li>
                    <a href="javascript:history.back();">卡券列表</a>
                </li>
                <li class="active" style="color: #02b87f;">添加卡券</li>
            </ul>
        </div>
        <div class="panel mgr15 mgl15">
            <div class="panel-heading addCharts" style="background:#ededed;">
                卡券
            </div>
            <div class="panel-body">
                    <div class="panel panel-default" id="step1">
                        <div class="panel-body">
                            <div class="alert form form-area" style="position: relative;margin-left:370px;display: block; margin-top: 0.5px;" >
                            <form class="form-horizontal adminex-form" id="form1" action="" method="post">
                                <input type="hidden" name="type" value="paycount">
                                <!--<input type="hidden" name="username" value="zhihuishangquan">-->
                                <!--<input type="hidden" name="password" value="admin">-->
                                <input type="hidden" name="merchid" value="501">
                                <!--<input type="hidden" name="user_code" value="819240230226">-->
                                <!--<input type="hidden" name="orderid" value="H501-20180116103856240645">-->
                                <!--<input type="hidden" name="con_user" value="zhihuishangquan">-->
                               <!--<input type="hidden" name="client_ip" value="10.0.0.81">-->
                                <!--<input type="hidden" name="auth_code" value="134704160512569713">-->
                                <!--<input type="hidden" name="cashier" value="wxc">-->
                                <!--<input type="hidden" name="num" value="100">-->
                                <!--<input type="hidden" name="fs" value="">-->
                                <!--<input type="hidden" name="fs" value="">
                                <!--<input type="hidden" name="search_vals" value="17839197520">-->
                                <!--<input type="hidden" name="page" value="1">-->
                                <!--<input type="hidden" name="user_code" value="819240230226">-->
                                <!--<input type="hidden" name="csid" value="">-->
                                <!--<input type="hidden" name="con_user" value="1001">-->
                                <input type="hidden" name="start_time" value="2018-1-15">
                                <input type="hidden" name="end_time" value="2018-1-16">
                                <!--<input type="hidden" name="page" value="1">-->
                                <div class="form-group">
                                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">1：</label>
                                    <div class="col-sm-9 col-xs-12">
                                        <!--<input type="text" class="form-control" name="username">-->
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">2：</label>
                                    <div class="col-sm-9 col-xs-12 coupon-color">
                                        <!--<input type="text" class="form-control" name="password">-->
                                    </div>
                                </div>


                                <div style="text-align: center">
                                    <button type="button" id="submit" class="btn btn-primary">添加</button>
                                </div>
                            </form>
                            </div>
                        </div>
                    </div>
                    {include file='public/footer'/}
            </div>
        </div>
    </div>
</section>
</body>
<script src="__STATIC_URL__/static/js/bootstrapSwitch.js"></script>
<script>
    $('#submit').click(function() { 			//按钮 单击
        var val = $("#form1").serialize();
        console.log(val);
//        console.log(JSON.parse(val));
        $.ajax({
            url: "https://os.wunengkeji.com/androidapi.php",			//提交事件
            type: "post",						//方式
            async: "true",					//异步
            dataType: "json",				//类型
            data: $("#form1").serialize(),		//表单ID
            success: function(data) {			//接收返回值
                console.log(data);
                if(data == 0){
                    alert("添加成功");
                }
                if(data == 1){
                    alert("添加失败");
                }
            }
        });
    });
</script>

</html>
